{template header}
<a class="btn btn-info" href="?c=admin&a=actHandle">添加活动</a>
<a class="btn btn-info" href="?c=admin&a=GroupActivity">官方活动</a>
<a class="btn btn-info" href="?c=admin&a=GroupActivity&type=1">非官方活动</a>
<div class="bs-docs-example table-align pt-15" style="clear:both;">
    <table class="table table-striped table-align">
        <thead>
        <tr>
            <th>所属组</th>
            <th>发布者</th>
            <th width="15%">活动名称</th>
            <th>活动类型</th>
            <th>创建时间</th>
            <th>开始时间</th>
            <th>结束时间</th>
            <th>费用</th>
            <th>参加人数</th>
            <th>状态</th>
            <th>操作</th>
        </tr>
        </thead>
        <tbody>
        {loop $list $k $v}
        <tr>
            <td>{if ($v['gid'] > 0)}<a href="?c=admin&a=GroupStatistic&gid={$v['gid']}">{$v['gid']}</a>{else}{$v['gid']}{/if}</td>
            <td>{$v['name']}</td>
            <td>{$v['title']}</td>
            <td>{eval echo $type[$v['type']]}</td>
            <td>{eval echo date("Y-m-d H:i:s",$v['addtime'])}</td>
            <td>{eval echo date("Y-m-d H:i:s",$v['stime'])}</td>
            <td>{eval echo date("Y-m-d H:i:s",$v['etime'])}</td>
            <td>{eval echo floatval($v['cost'])}元</td>
            <td>{$v['joinNum']}</td>
            <td>{eval echo $status[$v['status']]}</td>
            <td>
                <a class="btn btn-primary" id="btn" href="?c=admin&a=actRecommend&id={$v['aid']}&type=1">取消推荐</a>
        </tr>

        {/loop}
        </tbody>
    </table>
</div>
{template footer}
